<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /*
        */ 
        // to 是必须的
        <router-link to="home">Home</router-link>

        // <router-link :to="'home'">Home</router-link>

        // <router-link :to="'home'">Home</router-link>


        // <router-link :to="{ path:'home', paramas:{ userId: 123 } }">Home</router-link>

        /*带查询参数*/ 
        // <router-link :to="{ path:'home', paramas:{ userId: 123 } }">Home</router-link>

        // 2 tag 默认生成a标签 如果希望修改 tag="li"
    </script>
</body>
</html>